# import random
# from datetime import datetime
#
#
# def speed_test(func):
#     start = datetime.now()
#     result = func()
#     return result, datetime.now() - start
#
#
# arr = [
#     (random.randint(0, 1_000_000), random.randint(0, 1_000))
#     for _ in range(1_000_000)
# ]
#
#
# (arr, delta_time) = speed_test(
#   lambda:
#     [
#         (random.randint(0, 1_000_000), random.randint(0, 1_000))
#         for _ in range(1_000)
#     ]
# )
# print(delta_time.microseconds)
#
# (sorted_arr, delta_time) = speed_test(lambda: sorted(arr, key=lambda x: (x[0], x[1])))
# print(delta_time.microseconds)



from services.server_integration.api import ServerIntegrationApi


si_api = ServerIntegrationApi()

si_api.raise_alarm('PowerFailure', False, value=False)